provider Events DELETE /api/0/organizations/{organization_id_or_slug}/issues/
@utdk/sentry /api/0/organizations/{organization_id_or_slug}/issues/
Bulk Remove an Organization's Issues
Permanently remove the given issues. If IDs are provided, queries and filtering will be ignored. If any IDs are out of scope, the data won't be mutated but the endpoint will still produce a successful response. For example, if no issues were found matching the criteria, a HTTP 204 is returned.
organization_id_or_slug path required
The ID or slug of the organization the resource belongs to.
string
environment query
The name of environments to filter by.
array
project query
The IDs of projects to filter by. `-1` means all available projects. For example, the following are valid parameters: - `/?project=1234&project=56789` - `/?project=-1`
array
id query
The list of issue IDs to be removed. If not provided, it will attempt to remove the first 1000 issues.
array
query query
An optional search query for filtering issues. A default query will apply if no view/query is set. For all results use this parameter with an empty string.
string
viewId query
The ID of the view to use. If no query is present, the view's query and filters will be applied.
string
sort query
The sort order of the view. Options include 'Last Seen' (`date`), 'First Seen' (`new`), 'Trends' (`trends`), 'Events' (`freq`), 'Users' (`user`), 'Date Added' (`inbox`), and 'Recommended' (`recommended`).
enum: date, freq, inbox, new…
limit query
The maximum number of issues to affect. The maximum is 100.
integer

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

bulkRemoveAnOrganizationSIssues
DELETE/api/0/organizations/{organization_id_or_slug}/issues/
Permanently remove the given issues. If IDs are provided, queries and filtering will be ignored. If any IDs are out of scope, the data won't be mutated but the endpoint will still produce a successful response. For example, if no issues were found matching the criteria, a HTTP 204 is returned.

Parameters

required

The ID or slug of the organization the resource belongs to.

The name of environments to filter by.

The IDs of projects to filter by. `-1` means all available projects. For example, the following are valid parameters: - `/?project=1234&project=56789` - `/?project=-1`

The list of issue IDs to be removed. If not provided, it will attempt to remove the first 1000 issues.

An optional search query for filtering issues. A default query will apply if no view/query is set. For all results use this parameter with an empty string.

The ID of the view to use. If no query is present, the view's query and filters will be applied.

The sort order of the view. Options include 'Last Seen' (`date`), 'First Seen' (`new`), 'Trends' (`trends`), 'Events' (`freq`), 'Users' (`user`), 'Date Added' (`inbox`), and 'Recommended' (`recommended`).

The maximum number of issues to affect. The maximum is 100.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.bulkRemoveAnOrganizationSIssues({
  "query": "is:unresolved",
  "sort": "date",
  "limit": 100
})